//
// Calc.hh for 207 in /home/druart_p/Work/math/my-math-epi/207
//
// Made by pierrick druart
// Login   <druart_p@epitech.net>
//
// Started on  Wed May 23 11:16:45 2012 pierrick druart
// Last update Wed May 23 14:41:20 2012 pierrick druart
//

#ifndef		__CALC__
#define		__CALC__

#include	<list>
#include	<iostream>
#include	<string>

class		Calc
{
private:
  double       	coef_x;
  double	coef_y;
  double       	res;
  double       	coef_x2;
  double	coef_y2;
  double	res2;
  int		total;

public:
  Calc();
  ~Calc();

public:
  double       	getAdeX() const;
  double       	getBdeX() const;
  double       	getAdeY() const;
  double       	getBdeY() const;

public:
  void		coefx_to_y(std::list<int> boy, std::list<int> girl);
  void		coefy_to_x(std::list<int> boy, std::list<int> girl);
  void		correl(std::list<int> boy, std::list<int> girl);

private:
  void		ecartx_to_y(std::list<int> boy, std::list<int> girl, int total);
  void		ecarty_to_x(std::list<int> boy, std::list<int> girl, int total);
};

#endif /* __CALC__ */
